import http from './index'

export function get(id) {
  return http.get('/member/base/union/' + id)
}

export function update(data) {
  return http.post('/member/base/union', { data })
}

export function list(title = '') {
  return http.get('/member/base/union', {
    params: {
      title,
      limit: 10
    }
  })
}